package com.kla.power.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.kla.power.vo.BaseEntity;
import java.util.Date;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 菜单权限表
 * </p>
 *
 * @author WuZH
 * @since 2024-06-02
 */
@Getter
@Setter
@TableName("menu_info")
@ApiModel(value = "MenuEntity对象", description = "菜单权限表")
public class MenuEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    @ApiModelProperty("菜单名")
    @TableField("menuName")
    private String menuName;

    @ApiModelProperty("菜单请求url")
    @TableField("url")
    private String url;

    @ApiModelProperty("菜单前面图标")
    @TableField("menuClass")
    private String menuClass;

    @ApiModelProperty("菜单与按钮")
    @TableField("type")
    private Integer type;

    @ApiModelProperty("菜单的排序")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty("对于菜单的描述")
    @TableField("note")
    private String note;

    @ApiModelProperty("页面的按钮是二级菜单，它的父是左侧栏一级菜单")
    @TableField("parentId")
    private String parentId;

    @ApiModelProperty("菜单能够被哪些权限所点击，用在二级菜单")
    @TableField("permission")
    private String permission;

    @TableField("createTime")
    private Date createTime;

    @TableField("changeTime")
    private Date changeTime;

    @TableField("isUsed")
    private Integer isUsed;

    @TableField (exist = false)
    private List<MenuEntity> menuEntities;

    @TableField(exist = false)
    private String roleId;



}
